package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PartyRecordMapper;
import com.ruoyi.system.domain.PartyRecord;
import com.ruoyi.system.service.IPartyRecordService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-06-23
 */
@Service
public class PartyRecordServiceImpl implements IPartyRecordService 
{
    @Autowired
    private PartyRecordMapper partyRecordMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param prId 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public PartyRecord selectPartyRecordById(Long prId)
    {
        return partyRecordMapper.selectPartyRecordById(prId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param partyRecord 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<PartyRecord> selectPartyRecordList(PartyRecord partyRecord)
    {
        return partyRecordMapper.selectPartyRecordList(partyRecord);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param partyRecord 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertPartyRecord(PartyRecord partyRecord)
    {partyRecord.setCreateTime(DateUtils.getNowDate());
        return partyRecordMapper.insertPartyRecord(partyRecord);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param partyRecord 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updatePartyRecord(PartyRecord partyRecord)
    {partyRecord.setUpdateTime(DateUtils.getNowDate());
        return partyRecordMapper.updatePartyRecord(partyRecord);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param prIds 需要删除的【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deletePartyRecordByIds(Long[] prIds)
    {
        return partyRecordMapper.deletePartyRecordByIds(prIds);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param prId 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deletePartyRecordById(Long prId)
    {
        return partyRecordMapper.deletePartyRecordById(prId);
    }
}
